cursor_cache = g_slist_prepend (cursor_cache, cursor);
/* Take a ref so that if the caller frees it we still have it */
- gdk_cursor_ref ((GdkCursor*) cursor);
+ g_object_ref (cursor);
}
/* Returns 0 on a match
if (private)
{
/* Cache had it, add a ref for this user */
- gdk_cursor_ref ((GdkCursor*) private);
+ g_object_ref (private);
return (GdkCursor*) private;
}
if (private)
{
/* Cache had it, add a ref for this user */
- gdk_cursor_ref ((GdkCursor*) private);
+ g_object_ref (private);
return (GdkCursor*) private;
}
gdk_window_impl_x11_init (GdkWindowImplX11 *impl)
{
impl->toplevel_window_type = -1;
- impl->device_cursor = g_hash_table_new_full (NULL, NULL, NULL,
- (GDestroyNotify) gdk_cursor_unref);
+ impl->device_cursor = g_hash_table_new_full (NULL, NULL,
+ NULL, g_object_unref);
}
GdkToplevelX11 *
{
_gdk_x11_cursor_update_theme (cursor);
g_hash_table_replace (impl->device_cursor,
- device, gdk_cursor_ref (cursor));
+ device, g_object_ref (cursor));
}
if (!GDK_WINDOW_DESTROYED (window))